package com.ajx.blog.service.impl;

import com.ajx.blog.entity.ArticleCheckMessage;
import com.ajx.blog.mapper.ArticleCheckMessageMapper;
import com.ajx.blog.service.api.ArticleCheckMessageService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class ArticleCheckMessageServiceImpl extends ServiceImpl<ArticleCheckMessageMapper, ArticleCheckMessage> implements ArticleCheckMessageService {
    @Autowired
    private ArticleCheckMessageMapper articleCheckMessageMapper;

    @Override
    public ArticleCheckMessage selectArticleCheckMessage(Integer aid1) {
        QueryWrapper<ArticleCheckMessage> qw = new QueryWrapper<>();
        qw.eq("articleId",aid1);
        return articleCheckMessageMapper.selectOne(qw);
    }
}
